#include "main.h"
#include "cmsis_os.h"
extern osMessageQueueId_t rf_tx_mq_Handle;
int fputc(int ch, FILE *f)
{
    if (f == rfout)
        osMessageQueuePut(rf_tx_mq_Handle, &ch, 0, osWaitForever);
    else
        ITM_SendChar(ch);
    return ch;
}